home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / hypercrd / xcmds / shwdlg16.hqx / ShowDialog XCMD 1.6 / card_2808.txt < prev    next >
Text File  |  1989-05-10  |  2KB  |  71 lines

  1. -- card: 2808 from stack: in.6
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3411
  5. -- name: Trouble Shooting
  6. ----- HyperTalk script -----
  7. on closeCard
  8. end closeCard
  9.  
  10.  
  11. -- part 1 (button)
  12. -- low flags: 00
  13. -- high flags: 0001
  14. -- rect: left=16 top=88 right=297 bottom=198
  15. -- title width / last selected line: 0
  16. -- icon id / first selected line: 0 / 0
  17. -- text alignment: 1
  18. -- font id: 0
  19. -- text size: 12
  20. -- style flags: 0
  21. -- line height: 16
  22. -- part name: 
  23.  
  24.  
  25. -- part 2 (field)
  26. -- low flags: 01
  27. -- high flags: 2000
  28. -- rect: left=20 top=75 right=291 bottom=493
  29. -- title width / last selected line: 0
  30. -- icon id / first selected line: 0 / 0
  31. -- text alignment: 0
  32. -- font id: 3
  33. -- text size: 10
  34. -- style flags: 0
  35. -- line height: 13
  36. -- part name: 
  37.  
  38.  
  39. -- part 3 (button)
  40. -- low flags: 00
  41. -- high flags: 0000
  42. -- rect: left=11 top=4 right=64 bottom=78
  43. -- title width / last selected line: 0
  44. -- icon id / first selected line: 2 / 2
  45. -- text alignment: 1
  46. -- font id: 0
  47. -- text size: 12
  48. -- style flags: 0
  49. -- line height: 16
  50. -- part name: Trouble Shooting
  51.  
  52.  
  53. -- part contents for background part 21
  54. ----- text -----
  55. Trouble Shooting
  56.  
  57. -- part contents for background part 30
  58. ----- text -----
  59. 24
  60.  
  61. -- part contents for card part 2
  62. ----- text -----
  63. ShowDialog supports a full range of error codes.  If you pass an incorrect number of parameters or if some of your parameter values are inappropriate, ShowDialog will exit gracefully with a beep without displaying a dialog.  If you find this happening, debug your script with the line:
  64.  
  65. "put the result"
  66.  
  67. immediately following the line containing the call to ShowDialog.  This will load the error message into the message box.  These messages should be fully understandable.
  68.  
  69. If you find that your dialog appears at a spot on the screen and then immediately jumps to the position that you specified in the parameter list (or jumps to center itself) it is because you neglected to UNCHECK the "visible" checkbox on the DLOG template.
  70.  
  71. Also, for dialogs that have a title bar, remember that these dialogs must NOT have a go away box!  Be sure to UNCHECK the "GoAwayFlag" checkbox on the DLOG template.